﻿using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace mozhi.smarterp.Finance.Accounts
{
    public class AccountUpdateDto : ActivateDtoBase
    {
        [Required]
        public string Code { set; get; }

        [Required]
        public string Name { set; get; }

        [Required]
        public AccountDirectionType Direction { set; get; }

        [Required]
        public AccountType AccountType { set; get; }

        /// <summary>
        /// 是否资金账号
        /// </summary>
        public bool IsFundAccount { set; get; }

        /// <summary>
        /// 银行账号
        /// </summary>
        public Guid? BankAccountId { set; get; }

        /// <summary>
        /// 是否外币核算
        /// </summary>
        public bool IsForeignCurrency { set; get; }

        /// <summary>
        /// 核算项目
        /// </summary>
        public List<AccountDimensionItemCreateDto> DimensionItems { set; get; }
    }
}
